<extend name="Public/base"/>

<block name="body">
    <div class="main-title">
        <h2>修改实时库存信息</h2>
    </div>
    <div class="data-table table-striped">
        <form name='orderform' action="{:U('Subpro/inventorydetail')}" method="post" class="form-horizontal">
            <input type="hidden" name='id' value="{$data.id}"/>
            <table class="">
                <thead>
                    <tr>
                        <th colspan="6">基本信息</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <th width="10%">商品名称：</th>
                        <td style="color: red;width: 15%">
                            <input type="text" name="pname" value="{$data.pname}"  readOnly="readOnly" >
                        </td>
                        <th width="10%">商品编号：</th>
                        <td style="color: red;width: 15%">
                            <input type="text" name="spu" value="{$data.spu}"  readOnly="readOnly" >
                        </td>
                        <th width="10%">规格：</th>
                        <td style="color: red;width: 15%">
                            <input type="text" name="spec" value="{$data.spec}">
                        </td>

                        
                    </tr>

                    <tr>
                        <th  width="10%">库存数量：</th>
                        <td style="color: red;width: 15%">
                            <input type="text" name="cnt" id="cnt" value="{$data.cnt}">
                        </td>
                        <th width="10%">单价：</th>
                        <td style="color: red;width: 15%">
                            <input type="text" name="unitprice" id="unitprice" value="{$data.unitprice}">
                        </td>
                        <th  width="10%">总价：</th>
                        <td style="color: red;width: 15%">
                            <input type="text" name="totalprice" id="totalprice" value="{$data.totalprice}">
                        </td>

                    </tr>
                    <tr>
                        <th>修改原因：</th>
                        <td colspan="6">
                            <textarea name="remark" rows="4" style="width:90%;"></textarea>
                        </td>
                    </tr>
                </tbody>
            </table>
            <div class="col-md-12">
                <button class="btn btn-danger  " id="submit" type="submit" target-form="form-horizontal" autocomplete="off">修改</button>
                <a href="{:U('Subpro/inventorylist')}" class="btn btn-primary">返 回</a>
            </div>
        </form>
    </div>
    
</block>

<block name="script">
    <script type="text/javascript">
        //导航高亮
        highlight_subnav('{:U('Subpro/inventorylist')}');
    </script>
</block>
